package com.ruoyi.crm.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 药品信息对象 crm_stock_medicine
 * 
 * @author ruoyi
 * @date 2025-11-03
 */
public class CrmStockMedicine extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 药品ID */
    private Long medicineId;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String medicineName;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Integer stockQuantity;

    

    /** 可见用户ID数组 */
    private Long[] visibleUserIds;
    
    /** 可见用户名称 */
    private String visibleUserNames;

    public void setMedicineId(Long medicineId) 
    {
        this.medicineId = medicineId;
    }

    public Long getMedicineId() 
    {
        return medicineId;
    }
    public void setMedicineName(String medicineName) 
    {
        this.medicineName = medicineName;
    }

    public String getMedicineName() 
    {
        return medicineName;
    }
    public void setStockQuantity(Integer stockQuantity) 
    {
        this.stockQuantity = stockQuantity;
    }

    public Integer getStockQuantity() 
    {
        return stockQuantity;
    }
    

    public Long[] getVisibleUserIds() {
        return visibleUserIds;
    }

    public void setVisibleUserIds(Long[] visibleUserIds) {
        this.visibleUserIds = visibleUserIds;
    }
    
    public String getVisibleUserNames() {
        return visibleUserNames;
    }

    public void setVisibleUserNames(String visibleUserNames) {
        this.visibleUserNames = visibleUserNames;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("medicineId", getMedicineId())
            .append("medicineName", getMedicineName())
            .append("stockQuantity", getStockQuantity())
            
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("visibleUserNames", getVisibleUserNames())
            .toString();
    }
}